package com.heima.pojos;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class UserStudentAssignment implements Serializable {

  private static final long serialVersionUID = 1L;
  @TableId
  @JsonSerialize(using = ToStringSerializer.class)
  private int id;
  private int userId;
  private int assignmentId;
  private String assignmentName;
  private int assignmentType;
  private int status;

  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createdOn;
  private String isDeleted;

}
